package xyz.xtt.user.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;

import xyz.xtt.common.response.ApiResult;
import xyz.xtt.user.entity.TblUserDeliveryAddress;
import xyz.xtt.user.request.UserAddressRequest;

/**
 * <p>
 * 用户地址信息表 服务类
 * </p>
 *
 * @author author
 * @since 2024-10-17
 */
public interface ITblUserDeliveryAddressService extends IService<TblUserDeliveryAddress> {
	// 增上改查
	void addAddress(TblUserDeliveryAddress tblUserDeliveryAddress);

	void deleteAddress(Long id);

	void updateAddress(TblUserDeliveryAddress tblUserDeliveryAddress);

	List<TblUserDeliveryAddress> getAddress(Long id);

	List<TblUserDeliveryAddress> getUserAddress(String uid);

	ApiResult<?> addUserAddress(String uid, UserAddressRequest userAddress);
}
